package com.g4.shoppingback.controller;

import com.g4.shoppingback.common.Result;
import com.g4.shoppingback.pojo.DdCategorysInfo;
import com.g4.shoppingback.service.IDdCategorysInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@CrossOrigin
@RequestMapping("/shoppingback/ddCategoryInfo")
public class DdCategoryInfoController {

    @Autowired
    private IDdCategorysInfoService ddCategorysInfoService;

    @GetMapping
    public Result selectById(){

        List<DdCategorysInfo> list = ddCategorysInfoService.selectById();

        return Result.ok(list);
    }
}
